<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Cart;
class AddCartController extends Controller
{
	//商品列表页
	// public function getIndex()
	//删除每个
    public function getRow($rowId)
    {
    	Cart::remove($rowId);
        return redirect()->route('addcart.edit');
    }
    //清空所有
    public function getDestroy()
    {
    	Cart::destroy();
        return redirect()->route('addcart.edit');
    }
}
